<div class="col-sm-12 mt20">
    <!-- 搜索栏 -->
    <div class="panel panel-default">
        <div class="panel-body" ng-keyup="myKeyup($event)">
            <div class="col-sm-2">
            </div>
            <div class="col-sm-2">
            </div>
            <div class="col-sm-2">
            </div>
            <div class="col-sm-2">
            </div>
            <div class="col-sm-2">
            </div>
            <div class="col-sm-2">
                <button class="btn btn-info search btn-block" ng-click="updateFunctionCardType()">创建分类规则</button>
            </div>
    </div>
    </div>

    <!-- 景区产品列表 -->
    <div class="panel panel-default">
        <div class="panel-body">
            <table class="table table-condensed table-hover table-bordered">
                <thead>
                    <tr>
                        <th class="col-md-1 text-center">卡类型</th>
                        <th class="col-md-1 text-center">状态</th>
                        <th class="col-md-1 text-center">天数</th>
                        <th class="col-md-2 text-center">景区</th>
                        <th class="col-md-3 text-center">简要描述</th>
                        <th class="col-md-2 text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="info in functionCardTypeList">
                        <td class="text-center">
                            {{info.card_type_name}}
                        </td>
                        <td class="text-center">
                            【{{info.state == '1'? '启用': '停用'}}】
                        </td>
                        <td class="text-center">
                            {{info.day_num}}
                        </td>
                        <td class="text-center">
                            {{info.view_name}}
                        </td>
                        <td class="text-center">
                            {{info.description}}
                        </td>
                        <td class="text-center">
                            <button type="button" class="btn btn-success btn-xs" ng-if="info.state == '0'" ng-click="start(info)">启用</button>
                            <button type="button" class="btn btn-danger btn-xs" ng-if="info.state == '1'" ng-click="end(info)">停用</button>
                            <button type="button" class="btn btn-info btn-xs" ng-click="updateFunctionCardType(info)">编辑</button>
                            <button type="button" class="btn btn-danger btn-xs" ng-click="deleteFunctionCardType(info.id)">删除</button>
                        </td>
                    </tr>
                </tbody>
            </table>

            <div class="text-right">
                <pagination total-items="totalItems" ng-model="currentPage" ng-change="loadlist()" previous-text="上一页" next-text="下一页" first-text="首页"
                    last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage" class="m-t-none m-b">
                </pagination>
            </div>

        </div>
    </div>

</div>